// pages/daijin/daijin.js
const app = getApp();
Page({

  data: {
    show_a:'',
    GRADE:''
  },


  huodongguanli(e){

    console.log(e.currentTarget.id);
    wx.navigateTo({
      url: '/pages/daijinfenlei/daijinfenlei?data=' + JSON.stringify(e.currentTarget.id)
    })

  },






  fenxian(){
    wx.navigateTo({
      url: "/pages/jsqxuanze/jsqxuanze",
    })
  },


  zhuanjiema(){
    wx.navigateTo({
      url: "/pages/zhuanjiematianjiayuangongye/zhuanjiematianjiayuangongye",
    })
  },


  youxinchun(){
    wx.navigateTo({
      url: "/pages/kaihongyuntiaozhuan/kaihongyuntiaozhuan",
    })
  },



  xinjicha(){
    wx.navigateTo({
      url: "/pages/newxinkechaxun/newxinkechaxun",
    })
  },





  vipzhuan(){
    wx.navigateTo({
      url: "/pages/vipjinjizhuanxiangyuantiao/vipjinjizhuanxiangyuantiao",
    })
  },




  goempty(){
    wx.navigateTo({
      url: "/pages/newyueyeuxiangdierxincha/newyueyeuxiangdierxincha",
    })
  },




  goxkx(){
    console.log('ssss');
    wx.navigateTo({
      url: '/pages/xkzx/xkzx'
    })
  },
  goback(){
    wx.navigateBack({
      delta: 1,
    })
  },

  
  youxinxiang(){
    wx.navigateTo({
      url: '../../pages/newyouxincaisaoma/newyouxincaisaoma'
    })
 
  },
  


  newqian(){
    wx.navigateTo({
      url: '../../pages/newqianyuanjihuo/newqianyuanjihuo'
    })
 
  },




  
  lvyoujihuo(){
    wx.navigateTo({
      url: '../../pages/xiancaizhailuyoujihuo/xiancaizhailuyoujihuo'
    })
 
  },


  xinyong(){
    wx.navigateTo({
      url: '../../pages/xianxingyongkazhuce/xianxingyongkazhuce'
    })
 
  },


  tianjiatuangou(){
    wx.navigateTo({
      url: '../../pages/shequtuangouyuangongtiaozhuan/shequtuangouyuangongtiaozhuan'
    })
 
  },

  dapaisong(){
    wx.navigateTo({
      url: '../../pages/youhuidafangsongxuanze/youhuidafangsongxuanze'
    })
 
  },



  zoufang(){

    wx.navigateTo({
      url: '../../pages/zhoufangxuanze/zhoufangxuanze?data='+this.data.GRADE
    })
  },



  chou_a(){
    wx.navigateTo({
      url: '../../pages/daipai/daipai'
    })
  },





  dingwei(){
    wx.navigateTo({
      url: '../../pages/xianshangjiadingwei/xianshangjiadingwei'
    })
  },





  //新课有礼
  xingke(){
    wx.navigateTo({
      url: '../../pages/xingkezc/xingkezc'
    })
  },

  cha_gx(){
    wx.navigateTo({
      url: '../../pages/gxtiaoz/gxtiaoz'
    })
  },






  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(e) {

    console.log(e.data);

    console.log(JSON.parse(e.data));

    let shuju =JSON.parse(e.data)

  this.setData({

    GRADE:shuju.GRADE


  })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

    wx.request({
      url: app.globalData.interface+'/shanyouhui/API_1010_getOneConfig?code=CUNPONLOOK',
      method: 'GET',
  
      header: {
        'content-type': 'application/x-www-form-urlencoded'
      },
      success: res => {
        console.log(res.data.configList);

        this.setData({
          show_a:res.data.configList//on
        })
      }
    })




  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})